<template>
  <div>
    <input type="text" />
    <input type="password" />
  </div>
</template>

<script>
export default {
  destroyed() {
    console.log("用户名隐藏了");
  },
  activated() {
    console.log("账号密码显示了");
  },
  deactivated() {
    console.log("账号密码隐藏了");
  },
};
</script>

<style>
</style>